@php
if(($case['trial_step'] == 4) || ($case['trial_num'] == 2)) {
$trial_num = 2;
}elseif($case['trial_num'] == 3) {
$trial_num = 3;
}else {
$trial_num = 1;
}
@endphp
@switch($case['trial_step'])
@case(0)
<div class="btn-group me-3" role="group" aria-label="Basic example">
<a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>1,'trial_step'=>5]) }}"
    class="btn btn-light">调解</a>
<a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>8]) }}"
    class="btn btn-light">撤案</a>
</div>
<div class="btn-group" role="group" aria-label="Basic example">
<a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>3,'trial_step'=>1]) }}"
    class="btn btn-primary">进入仲裁</a>
<a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>1,'trial_step'=>1]) }}"
    class="btn btn-primary">进入起诉</a>
</div>
@break

@case(1)
<div class="btn-group me-3" role="group" aria-label="Basic example">
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>5]) }}"
        class="btn btn-light">调解</a>
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>8]) }}"
        class="btn btn-light">撤案</a>
</div>
<div class="btn-group" role="group" aria-label="Basic example">
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>2]) }}"
        class="btn btn-primary">录入缴费</a>
</div>
@break
@case(2)
<div class="btn-group me-3" role="group" aria-label="Basic example">
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>5]) }}"
        class="btn btn-light">调解</a>
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>8]) }}"
        class="btn btn-light">撤案</a>
</div>
<div class="btn-group" role="group" aria-label="Basic example">
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>3]) }}"
        class="btn btn-primary">录入传票</a>
</div>
@break
@case(3)
<div class="btn-group me-3" role="group" aria-label="Basic example">
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>5]) }}"
        class="btn btn-light">调解</a>
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>8]) }}"
        class="btn btn-light">撤案</a>
</div>
<div class="btn-group" role="group" aria-label="Basic example">
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>4]) }}"
        class="btn btn-primary">录入判决</a>
</div>
@break
@case(4)
<div class="btn-group" role="group" aria-label="Basic example">
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$case['trial_num'] ,'trial_step'=>6]) }}"
        class="btn btn-primary">申请执行</a>

    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$case['trial_num'] ,'trial_step'=>9]) }}"
        class="btn btn-primary">结案</a>
    @if ($case['trial_num'] == 1)
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>2]) }}"
        class="btn btn-primary">进入上诉</a>
    @endif
</div>

@break
@case(5)
<div class="btn-group" role="group" aria-label="Basic example">
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>9]) }}"
        class="btn btn-primary">结案</a>
</div>
@break
@case(6)
<div class="btn-group" role="group" aria-label="Basic example">
    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$case['trial_num'] ,'trial_step'=>7]) }}"
        class="btn btn-primary">录入执行立案</a>

    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>9]) }}"
        class="btn btn-primary">结案</a>
</div>
@break
@case(7)
<div class="btn-group" role="group" aria-label="Basic example">

    <a href="{{ admin_route('casecaseprogress.create',['case_id'=>$case['id'],'trial_num'=>$trial_num,'trial_step'=>9]) }}"
        class="btn btn-primary">结案</a>
</div>
@break

@default

@endswitch
